package day019.ioStream;

import java.io.FileOutputStream;
import java.io.IOException;

public class OutputStreamDemo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("D:\\ideaProjects\\javase_code\\study-practice\\src\\day019" +
                "\\ioStream\\day019_demo\\a.txt", true);

        fos.write(97);
        fos.write(98);
        fos.write(99);

        fos.write("\r\n".getBytes());

        byte[] bys = {65, 66, 67, 68, 69};
        fos.write(bys);
        fos.write("\r\n".getBytes());

        fos.write(bys, 0, 3);


    }
}
